package com.example.communitysystem.exception;

public enum CustomizeErrorCode implements ICustomizeErrorCode{
    QUESTION_NOT_FOUND(202,"您找的问题不在了，要不换一个试试！"),
    TARGET_PARAM_NOT_FOUND(201,"未选中任何问题或评论进行回复！"),
    NO_LOGIN(203,"当前操作需要登录，请登录后重试！"),
    SYS_ERROR(204,"服务请求太热了，请稍后试试!!"),
    TYPE_PARAM_ERROR(205,"评论类型错误或不存在"),
    COMMENT_NOT_FOUND(206,"您回复的评论不在了，要不换一个试试！"),
    COMMENT_NOT_NULL(207,"您回复的评论为空，请输入评论！"),
    READ_NOTIFICATION_ERROR(208,"您阅读的信息错误！"),
    NOTIFICATION_NOT_FOUND(209,"您阅读的信息不翼而飞了！"),
    ;
    private String message;
    private Integer code;

    @Override
    public String getMessage(){
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    CustomizeErrorCode(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
